package ex202;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        Rectangle rect1 = new Rectangle(input.nextDouble(), input.nextDouble());
        System.out.printf("%.2f, %.2f\n", rect1.getPerimeter(), rect1.getArea());

        Rectangle rect2 = new Rectangle();
        System.out.printf("%.2f, %.2f\n", rect2.getPerimeter(), rect2.getArea());
    }
}
